﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Shop_TemplateFile : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Utility.InitUltraWebGrid.InitDisplayLayOut(this.UWG);

            BindData();
        }
    }

    #region Web 窗体设计器生成的代码

    protected override void OnLoad(EventArgs e)
    {
        isRequestLogin = true;                                  //是否需要登录
        RequestLoginPage = this.Request.Url.AbsoluteUri;        //获取决对Url
        isAtFramePageLogin = true;                              //是框架页

        //RequestCompetences = Competences.BuildCompetencesList(Competences.);//页面权限

        base.OnLoad(e);
    }

    #endregion

    private void BindData()
    {
        DataTable dt = new DAL.Tables.tbl_Site_TemplatesFile().Open("", "[TemplateID]=1", "ID");

        if (dt != null && dt.Rows.Count > 0)
        {
            UWG.DataSource = dt;
            UWG.DataBind();
        }
    }

}